runtime.mheap.sweepPagesPerByte (field)
9 uses
runtime (current package)
mgc.go#L1739: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L178: print("pacer: sweep done at heap size ", live>>20, "MB; allocated ", (live-mheap_.sweepHeapLiveBasis)>>20, "MB during sweep; swept ", mheap_.pagesSwept.Load(), " pages at ", mheap_.sweepPagesPerByte, " pages/byte\n")
mgcsweep.go#L913: if mheap_.sweepPagesPerByte == 0 {
mgcsweep.go#L948: pagesTarget := int64(mheap_.sweepPagesPerByte*float64(newHeapLive)) - int64(callerSweepPages)
mgcsweep.go#L951: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L986: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L1007: mheap_.sweepPagesPerByte = 0
mgcsweep.go#L1009: mheap_.sweepPagesPerByte = float64(sweepDistancePages) / float64(heapDistance)
mheap.go#L110: sweepPagesPerByte float64 // proportional sweep ratio; written with lock, read without